package com.itsq.pojo.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author 史先帅
 * @since 2021-02-01
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("users")
@ApiModel(value="Users对象", description="")
public class Users implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "用户信息表id")
      @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "公众号id")
    @TableField("openid")
    private String openid;

    @ApiModelProperty(value = "用户名")
    @TableField("name")
    private String name;

    @ApiModelProperty(value = "头像")
    @TableField("img")
    private String img;

    @ApiModelProperty(value = "创建时间")
    @TableField("cre_date")
    private Date creDate;

    @ApiModelProperty(value = "修改时间")
    @TableField("upd_date")
    private Date updDate;

    @ApiModelProperty(value = "状态")
    @TableField("state")
    @TableLogic
    private Integer state;



    public static final String ID = "id";

    public static final String OPENID = "openid";

    public static final String NAME = "name";

    public static final String IMG = "img";

    public static final String CRE_DATE = "cre_date";

    public static final String UPD_DATE = "upd_date";

    public static final String STATE = "state";


}
